package dk.aau.cs.giraf.TimerLib;

import java.io.Serializable;

public class seriaChild implements Serializable{
	int _id;
	String name;
	int[] _subprofiles;
	/***
	 * This Child object is only used for saving and loading in the CRUD class
	 * @param _id The id for the Child object
	 * @param name The name on the child
	 * @param subprofiles The SubProfiles id accociated with this child object
	 */
	seriaChild(int id, String name, int[] subprofiles){
		this._id = id;
		this.name = name;
		this._subprofiles = subprofiles;
	}


	public seriaChild convertChild(Child c){
		return new seriaChild(c.getId(),c.name,c._subprofiles);
	}
}